<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
    <title>悦章科技机构平台</title>
    <script src="/Public/static/jquery-2.0.3.min.js"></script>
    <script src="/Public/static/layer/layer.js"></script>
    <!--内容样式-->
    <link rel="stylesheet" href="__PUBLIC__/Home/css/style.css" />
    <link rel="stylesheet" href="__PUBLIC__/Home/css/page.css" />
</head>
<body>
<div class="main">
    <!--  头部  -->
    <include file="menu" />
    <!--  右侧内容  -->
    <div class="content">


        <div class= "ct-title">
            <div class="ctt-bt">客户详情</div>
            <div class="divclear"></div>
        </div>

        <div class="xsxq-box">
            <div class="xb-bt">客户信息</div>
            <div class="xb-img">
                <img <if condition="$info['customer_path'] neq ''">src="{$info.customer_path}"<else/>src="__PUBLIC__/Home/images/imgTX.jpg"</if> />
            </div>
            <div class="xb-mc">{$info.name}</div>
            <div class="divclear"></div>
            <div class="xb-nr">手机号码：<span>{$info.mobile}</span></div>
            <div class="xb-nr">QQ号码：<span>{$info.qq}</span></div>
            <div class="xb-nr">微信号：<span>{$info.wechat}</span></div>
            <div class="xb-nr">身份证号：<span>{$info.id_card}</span></div>
            <div class="xb-nr">客户阶段：<span><if condition="$follow_up[0]['stage'] eq 1">跟踪阶段<elseif condition="$follow_up[0]['stage'] eq 2"/>成交<elseif condition="$follow_up[0]['stage'] eq 3"/>没意向客户<elseif condition="$follow_up[0]['stage'] eq 4"/>流失客户<else/>跟踪阶段</if></span></div>
            <div class="xb-nr">客户来源：<span><if condition="$info['source'] eq 1">线上咨询<elseif condition="$info['source'] eq 2"/>客户介绍<elseif condition="$info['source'] eq 3"/>学生介绍<elseif condition="$info['source'] eq 4"/>线下联系<else/>其他</if></span></div>
            <div class="xb-nr">重要程度：<span><if condition="$info['degree'] eq 1">A类（极其重要）<elseif condition="$info['degree'] eq 2"/>B类（非常重要）<elseif condition="$info['degree'] eq 3"/>C类（重要）<elseif condition="$info['degree'] eq 4"/>D类（一般）<else/>E类（不重要）</if></span></div>
            <div class="divclear"></div>
            <div class="xb-nr" style="width: 100%;">备注：<span>{$info.remarks}</span></div>
            <div class="divclear"></div>
        </div>

        <div class= "ct-title" style="margin-top: 60px;">
            <div class="ctt-bt">线索信息</div>
            <div class="divclear"></div>
        </div>

        <div class="xsxq-box">
            <div class="xb-bt">基本信息</div>
            <div class="xb-nr">线索名称：<span>{$clue.name}</span></div>
            <div class="xb-nr">手机号码：<span>{$clue.mobile}</span></div>
            <div class="xb-nr">QQ号码：<span>{$clue.qq}</span></div>
            <div class="xb-nr">微信号：<span>{$clue.wechat}</span></div>
            <div class="xb-nr">线索来源：<span><if condition="$clue['source'] eq 1">线上咨询<elseif condition="$clue['source'] eq 2"/>客户介绍<elseif condition="$clue['source'] eq 3"/>学生介绍<elseif condition="$clue['source'] eq 4"/>线下联系<else/>其他</if></span></div>
            <div class="xb-nr">线索状态：<span><if condition="$clue['status'] eq 1">无效数据<elseif condition="$clue['status'] eq 2"/>联系不上<elseif condition="$clue['status'] eq 2"/>挖掘阶段<elseif condition="$clue['status'] eq 2"/>联系方式有效<else/>已转客户</if></span></div>
            <div class="divclear"></div>
            <div class="xb-bt">时间轨迹</div>
            <div class="xb-nr">首次添加时间：<span>{$clue.create_time|date='Y-m-d',###}</span></div>
            <div class="xb-nr">首次分配时间：<span>-</span></div>
            <div class="divclear"></div>
        </div>

        <div class= "ct-title" style="margin-top: 60px;">
            <div class="ctt-bt">跟进信息</div>
            <div class="ctt-r">
                <div class="cttr-tab">
                    <div <if condition="$mode eq '' || $mode eq 'all'">class="cttrt-btn on"<else/>class="cttrt-btn"</if> onclick="retrieval('all','{$info.id}')">全部</div>
                    <div <if condition="$mode eq '1'">class="cttrt-btn on"<else/>class="cttrt-btn"</if> onclick="retrieval('1','{$info.id}')">QQ（{$qq_count}）</div>
                    <div <if condition="$mode eq '2'">class="cttrt-btn on"<else/>class="cttrt-btn"</if> onclick="retrieval('2','{$info.id}')">微信（{$wx_count}）</div>
                    <div <if condition="$mode eq '3'">class="cttrt-btn on"<else/>class="cttrt-btn"</if> onclick="retrieval('3','{$info.id}')">短信（{$sms_count}）</div>
                    <div <if condition="$mode eq '4'">class="cttrt-btn on"<else/>class="cttrt-btn"</if> onclick="retrieval('4','{$info.id}')">拜访（{$bf_count}）</div>
                    <div <if condition="$mode eq '5'">class="cttrt-btn on"<else/>class="cttrt-btn"</if> onclick="retrieval('5','{$info.id}')">其他（{$other_count}）</div>
                    <div class="divclear"></div>
                </div>
                <div class="divclear"></div>
            </div>
            <div class="divclear"></div>
        </div>

        <div class="ct-table">
            <table width="100%" border="0">
                <tbody>
                <tr>
                    <th scope="col" width="55%" style="border-top-left-radius: 10px;">跟进内容</th>
                    <th scope="col" width="15%">跟进人</th>
                    <th scope="col" width="15%">跟进方式</th>
                    <th scope="col" width="15%" style="border-top-right-radius: 10px;">跟进时间</th>
                </tr>
                <volist name="follow_up" id="vo">
                    <tr>
                        <td>{$vo.content}</td>
                        <td>{$vo.gjz_name}</td>
                        <td><if condition="$vo['mode'] eq 1">QQ<elseif condition="$vo['mode'] eq 2"/>微信<elseif condition="$vo['mode'] eq 3"/>短信<elseif condition="$vo['mode'] eq 4"/>拜访<else/>其他</if></td>
                        <td>{$vo.create_time|date='Y-m-d H:i',###}</td>
                    </tr>
                </volist>
                </tbody>
            </table>
        </div>
        <div class="page">
            {$_page}
        </div>
    </div>
</div>
</body>
<script type="text/javascript">
    function retrieval(mode,id)
    {
        var url = "{:U('Home/Index/customerDetails')}";
        url = url+"&id="+id+"&mode="+mode;
        location.href = url;
    }
</script>
</html>
